#!/usr/bin/env python
# -*- coding:utf-8 -*-
import random
from turtle import Shape


def shapeNameGen(n):
    print ("*******************")
    types = Shape.__subclasses__()
    print ("****************")
    print (types)
    for i in range(n):
        yield random.choice(types).__name__


# shapes = [Shape.factory(i) for i in shapeNameGen(7)]
#
# for shape in shapes:
#     shape.draw()
#     shape.erase()

# if __name__ == "__main__":
#     print ("**************")
shapeNameGen(3)